class UrlMappings {

    static mappings = {
        "/$controller/$action?/$id?"{
            constraints {
                // apply constraints here
            }
        }

        "/"(view:"/index")
        "500"(view:'/error')

        // mapeamento dos controladores de login e logout
        "/login/$action?" (controller: "login")
        "/logout/$action?"(controller: "logout")
    }
}
